The act of inflicting pain or suffering on oneself as a response to perceived wrongdoings.
स्वयं पर दंड लगाना
English Usage: Her self-punishment for the mistake made her feel worse instead of better.
Hindi Usage: उसकी गलती के लिए स्वयं पर दंड लगाने से उसे और भी बुरा लगा।